/***********************************************************
* 
*     File Name:  pointer.cpp
* 
*        Author:  Algolc
* 
*          mail:  17360224@qq.com
* 
*  Created Time:  Fri 27 Jul 2018 09:50:32 AM CST
* 
***********************************************************/

#include <stdlib.h>
#include <iostream>
using namespace std;

int main() {
    int updates = 6;
    int* p_updates;
    p_updates = &updates;
    
    cout << "Value: update = " << updates;
    cout << ", *p_updates = " << *p_updates << endl;

    cout << "Addresses: &update = " << &updates;
    cout << ", p_updates = " << p_updates << endl;

    *p_updates = *p_updates + 1;
    cout << "Now updates = " << updates << endl;
    return 0;
}
